<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core3" prefix="select"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/dict" prefix="dict" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!-- search area   -->
<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="getEnumItemsByCondition" id="searchForm">
		  <div class="row">
		    <div class="col-md-4">
		      <div class="form-group">
		         <label  class="col-md-4 control-label"><s:text name="enum.code"/></label>
		         <div class="col-md-8">
		            <input type="text" class="form-control" name="code" placeholder="<s:text name="enum.code"/>"/>
		         </div>
		       </div>
		    </div>
		    
		    <div class="col-md-4">
		    	<div class="form-group">
			    	<label  class="col-md-4 control-label"><s:text name="enum.name"/></label>
			    	<div class="col-md-8">
			        	<input type="text"  class="form-control" name="name" placeholder="<s:text name="enum.name"/>"/>
			        </div>
		    	</div>
		    </div>
		    
		    <div class="col-md-4">
		    	<div class="form-group">
			    	<label  class="col-md-4 control-label"><s:text name="enum.nameen"/></label>
			    	<div class="col-md-8">
			        	<input type="text"  class="form-control" name="nameen" placeholder="<s:text name="enum.nameen"/>"/>
			        </div>
		    	</div>
		    </div>
		    
		    
		  </div>
		  
		  <div class="row">
		  
		  	<div class="col-md-4">
		    	<div class="form-group">
			    	<label  class="col-md-4 control-label"><s:text name="enum.enumword"/></label>
			    	<div class="col-md-8">
			        	<input type="text"  class="form-control"name="enumword" placeholder="<s:text name="enum.enumword"/>"/>
			        </div>
		    	</div>
		    </div>
		  
		    <div class="col-md-4">
		      <div class="form-group">
		         <label  class="col-md-4 control-label"><s:text name="enum.remark"/></label>
		         <div class="col-md-8">
		            <input type="text" class="form-control" name="remark" placeholder="备注"/>
		         </div>
		       </div>
		    </div>
		    
		    <div class="col-md-4">
		    	<div class="form-group">
			    	<label  class="col-md-4 control-label"><s:text name="common.createtime"/></label>
			    	<div class="col-md-8">
			        	<input type="text"  class="laydate-icon form-control layer-date" onclick="laydate()" name="createtime" placeholder="<s:text name="common.createtime"/>"/>
			        </div>
		    	</div>
		    </div>
		    
		  </div>
		  
		  <div class="row">
		  	<div class="col-md-11">
		    	<div class="form-group">
			    	<label  class="col-md-11 control-label"></label>
			        <div class="col-md-1">
			        	<button type="button" class="btn btn-primary pull-left" onclick="ajaxForm('content','searchForm')">
			          	<i class="fa fa-search m-l-sm m-r-xs"></i><s:text name="common.search"/></button>
			        </div>
		    	</div>
		    </div>
		  </div>
	</form>
</div>
<!-- search area end  -->

<div class="row searchLineWrap">
		<p><a href="javascript:void(0);" onClick="ajaxContent('redirectEnumItem');" class="btn btn-primary pull-left"><s:text name="enum.enumItem.addEnumItem"/></a><div class="clearfix"></div></p>
	<table class="table table-bordered table-hover dataTables-example">
	    <thead>
	        <tr>
	            <th><s:text name="enum.code"/></th>
	            <th><s:text name="enum.name"/></th>
	            <th><s:text name="enum.nameen"/></th>
	            <th><s:text name="enum.enumword"/></th>
	            <th><s:text name="common.createtime"/></th>
	            <th><s:text name="common.updatetime"/></th>
	            <th><s:text name="enum.remark"/></th>
	            <th><s:text name="common.operate"/></th>
	        </tr>
	    </thead>
	    <tbody>
	    	<s:iterator value="#request.enumItems">
	    		<tr>
	    			<td>${code }</td>
	    			<td>${name }</td>
	    			<td>${nameen }</td>
	    			<td>${enumword }</td>
	    			<td><fmt:formatDate value="${createtime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
	    			<td><fmt:formatDate value="${updatetime }" pattern="yyyy-MM-dd HH:mm:ss"/></td>
	    			
	    			<td>${remark }</td>
	    			<td>
						<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('getEnumItemByEnumItemID?enumid=${enumid}');"><s:text name="common.view"/></button>
						<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('getEnumItemByEnumItemID?enumid=${enumid}')"><s:text name="common.edit"/></button>
						<button type="button" class="btn btn-sm btn-link" onClick="ajaxDelete('deleteEnumItemByEnumItemID?enumid=${enumid}','content')"><s:text name="common.delete"/></button>
					</td>
	    		</tr>
	    	</s:iterator>
	    </tbody>
	</table>
</div>
